package com.xingdian.xingdianhulianweb.mapper;

import com.xingdian.xingdianhulianweb.common.QueryObject;
import com.xingdian.xingdianhulianweb.vo.News;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface NewsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(News record);

    int insertSelective(News record);

    News selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(News record);

    int updateByPrimaryKey(News record);

    //查询所有焦点新闻
    List<Map<String, Object>> findAll(QueryObject queryObject);
    //统计焦点新闻数量
    int countNews();
    //集团资讯
    List<Map<String, Object>> findAlljt(QueryObject queryObject);
    //媒体报道
    List<Map<String, Object>> findAllmt(QueryObject queryObject);
    //集团通讯数量
    int countjtNews();
    //媒体报道数量
    int countmtNews();
}